﻿<UserControl x:Class="Atlanchim.Crm.Mui.Content.AdminPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Style="{StaticResource ContentRoot}">
        <ScrollViewer>
            <StackPanel MinWidth="200">
                <TextBlock Text="Console d'administration" Style="{StaticResource Heading2}" />
                
                <TextBox Text="{Binding Path=CommandText, FallbackValue=?}" Margin="10" Background="#FF8B8B8B" Foreground="White">
                    <TextBox.InputBindings>
                        <KeyBinding Key="Enter" Command="{Binding AdminCommand, Mode=TwoWay}" CommandParameter="{Binding CommandText}" />
                    </TextBox.InputBindings>
                </TextBox>
                <Button Content="Exécuter" Margin="10"
                        Command="{Binding AdminCommand}" CommandParameter="{Binding CommandText}"/>
                
                <!--<Button Content="Créer une nouvelle base de données" Margin="10, 30, 10, 10"
                        Command="{Binding NewDbCommand}" />-->

                <Button Content="Sauvegarder la base de données" Margin="10, 30, 10, 10"
                        Command="{Binding BackupCommand}" />

            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
